#pragma once

#include <map>

#include "JudgeDredd.h"
#include "Hcalc.h"
#include "GameException.h"

class MinMax
{
	std::map<int, int>		list; /*id + heuristic*/
	std::map<int, coord_t>	listEnd; /* heuristic + coord */
	coord_t					fCoord;
	coord_t					coordMax;

public:
	MinMax(void);
	~MinMax(void);

	coord_t&	launch(GameInfo& info);
	int			min(coord_t& coord, GameInfo info);	

	int			launchHeuristic(coord_t&, GameInfo);
private:
	JudgeDredd	judge;
};

